package server.command;

public class MarkCommand implements Command {

	public static final int MARK_PRESS = 101;
	public static final int MARK_DRAG = 102;
	public static final int MARK_RELEASE = 103;

	protected final int type;
	private int x;
	private int y;
	private int position;
	
	public MarkCommand(int type, int x, int y, int position){
		this.type = type;
		this.x = x;
		this.position = position;
		this.y = y;
	}

	public static boolean isMarkCommand(Command command) {
		return isMarkCommand(command.getType());
	}

	public static boolean isMarkCommand(int type) {
		return type > 100 && type < 104;
	}

	@Override
	public int getType() {
		return this.type;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getPosition() {
		return position;
	}
}
